FROM openjdk:11-jre
MAINTAINER 13302439241
ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /prod
WORKDIR /prod
ADD ./target/spring-test.jar ./
CMD java $JAVA_OPTS -jar spring-test.jar
